﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using DAO;
using Entity;

namespace BUS
{
    public class NhomTinBUS
    {

        public BindingList<NhomTin> LoadAll()
        {

            NhomTinDAO d = new NhomTinDAO();
            return d.LoadAll();
        }

        public NhomTin LoadByID(int id)
        {
            NhomTinDAO d = new NhomTinDAO();
            return d.LoadByID(id);
        }
        public int DeleteByStringId(int id)
        {
            NhomTinDAO d = new NhomTinDAO();
            return d.DeleteByStringId(id);
        }
        public int Insert(NhomTin kv)
        {
            NhomTinDAO d = new NhomTinDAO();
            return d.Insert(kv);
        }
        public int Update(NhomTin kv)
        {
            NhomTinDAO d = new NhomTinDAO();
            return d.Update(kv);
        }
    }
}
